<?php

namespace App\Controllers;

class Home extends BaseController
{
    public function index()
    {
        $data = [
            'heading' => 'Welcome to SpongeBob‘s Adventures!',
            'messages' => [
                'Explore the unknown landscapes of Bikini Bottom',
                'Experience the unique culture of the underwater city',
                'Savor the local delicacies',
                'Enjoy the serenity of the ocean',
                'Meet new friends on the journey',
                'Capture beautiful moments',
                'Discover exciting new experiences'
            ]
        ];

        // $parser = \Config\Services::parser();
        // return $parser->setData($data)
        //               ->render('myView');
        echo view('myView', $data);
    }
}

